/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.controllers;

import com.bs.beans.fiscal.NotaFiscal;
import com.bs.extensoesSwing.AbstractGridController;
import com.bs.forms.NotaFiscalForm;

/**
 *
 * @author Bone
 */
public class NotaFiscalGridController <E> extends AbstractGridController<NotaFiscal>{

    @Override
    public void novo() {
        NotaFiscal n = new NotaFiscal();
        NotaFiscalForm f = new NotaFiscalForm(n);
        f.setVisible(true);
        if(n.getId()!= null)adicionarALista(n);
        f = null;
        n = null;
    }

    @Override
    public void alterar() {
        NotaFiscalForm f = new NotaFiscalForm(getBeanSelecionado());
        f.setVisible(true);
        f = null;
    }
    
}
